package 匿名内部类;
class Out{
    public void test(){
        System.out.println("test()");
    }
}
interface IA{
    void test1();
}
public class Test {
    public static void main(String[] args) {
        IA ia =new IA(){
            @Override
            public void test1() {
                System.out.println("22222");
            }
        };
//        ia.test1();
    }
    public static void main1(String[] args) {
        new Out(){
            public void test(){
                System.out.println("test()111");
            }
        }.test();
    }
}
